export function useTag() {
    const category = [
        {
            class: 'bg-#e3f9e9 c-#2ba471',
            label: '招标公告',
            value: 1,
        },
        {
            class: 'bg-#fff1e9 c-#e37318',
            label: '中标公告',
            value: 2,
        },
        {
            class: 'bg-#f2f3ff c-#0052d9',
            label: '其他',
            value: 3,
        },
    ]

    function getClass(cty: string) {
        return category.find((v: any) => `${v.value}` === cty)?.class
    }

    function getLabel(cty: string) {
        return category.find((v: any) => `${v.value}` === cty)?.label
    }

    return { category, getClass, getLabel }
}
